<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
*/
defined('BY_JYA') or exit('error');
$_RQ['op']=$_RQ['op']?$_RQ['op']:'get';
if($_RQ['op']=='get'){
	$return['ischecklogin']=model('core/core')->checklogin('','',true);
	$_SESSION['memberid']=$this->model('member')->checkmember();
	$_SESSION['logout_forward']='jy_aihire/home';
	$member=pdo_get('jy_aihire_member',array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	if(!$member){
		exi('找不到会员信息！','error');
	}
	$return['post']=$member;
	set_html('title','我的支付宝');
	exi($return);
}
if($_RQ['op']=='post'){
	$postdata=get_postdata();
	if(!$postdata['alipaysn']){
		exi('请填写支付宝账号！','error');
	}
	$id=$postdata['id'];
	$update=array(
		'alipaysn'=>trim($postdata['alipaysn']),
	);
	pdo_update('jy_aihire_member',$update,array('id'=>$_SESSION['memberid'],'uniacid'=>$_SESSION['uniacid']));
	exi('设置成功！','','goback');
}